package org.jeecg.modules.website.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.metadata.IPage;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.modules.content.entity.JcContent;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: jc_channel
 * @Author: jeecg-boot
 * @Date:   2020-06-23
 * @Version: V1.0
 */
@Data
@TableName("jc_channel")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="jc_channel对象", description="jc_channel")
public class JcChannel implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "主键")
    private String id;
	/**父级结点*/
	@Excel(name = "父级结点", width = 15, dictTable = "jc_channel", dicText = "channel_name", dicCode = "id")
	@Dict(dictTable = "jc_channel", dicText = "channel_name", dicCode = "id")
    @ApiModelProperty(value = "父级结点")
    private String parentid;
	/**中文名称*/
	@Excel(name = "中文名称", width = 15)
    @ApiModelProperty(value = "中文名称")
    private String channelName;
	/**英文名称*/
	@Excel(name = "英文名称", width = 15)
    @ApiModelProperty(value = "英文名称")
    private String channelNameEn;
    /**栏目编码*/
    @Excel(name = "栏目编码", width = 15)
    @ApiModelProperty(value = "栏目编码")
    private java.lang.String channelCode;
	/**显示顺序*/
	@Excel(name = "显示顺序", width = 15)
    @ApiModelProperty(value = "显示顺序")
    private Double sequence;
	/**每页多少条记录*/
	@Excel(name = "每页多少条记录", width = 15)
    @ApiModelProperty(value = "每页多少条记录")
    private Integer size;
	/**路由地址*/
	@Excel(name = "路由地址", width = 15)
    @ApiModelProperty(value = "路由地址")
    private String link;

	/**文章列表展示形式:1:列表,2:图文,3:图片*/
	@Excel(name = "文章列表展示形式:1:列表,2:图文,3:图片", width = 15)
    @Dict(dicCode = "display_form")
    @ApiModelProperty(value = "文章列表展示形式:1:列表,2:图文,3:图片")
    private String displayForm;

	/**缩略图*/
	@Excel(name = "缩略图", width = 15)
    @ApiModelProperty(value = "缩略图")
    private String titleImg;
	/**内容图*/
	@Excel(name = "内容图", width = 15)
    @ApiModelProperty(value = "内容图")
    private String contentImg;
	/**标题*/
	@Excel(name = "标题", width = 15)
    @ApiModelProperty(value = "标题")
    private String title;
	/**描述*/
	@Excel(name = "描述", width = 15)
    @ApiModelProperty(value = "描述")
    private String description;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;

    @TableField(exist = false)
    String channelType;

    @TableField(exist = false)
    String leaft;

    @TableField(exist = false)
    List<JcContent> contentList;

    @TableField(exist = false)
    List<JcChannel> channelList;
    @TableField(exist = false)
    IPage iPage;

}
